﻿using System;

namespace nRoute.Components.Composition
{
    public class CatalogChange
    {
        private readonly Type _resourceType;
        private readonly IResourceLocator _resourceLocator;
        private readonly CatalogChangeAction _changeAction;

        public CatalogChange(Type resourceType, IResourceLocator resourceLocator, CatalogChangeAction changeAction)
        {
            _resourceType = resourceType;
            _resourceLocator = resourceLocator;
            _changeAction = changeAction;
        }

        public Type ResourceType
        {
            get { return _resourceType; }
        }

        public IResourceLocator ResourceLocator
        {
            get { return _resourceLocator; }
        }

        public CatalogChangeAction ChangeAction
        {
            get { return _changeAction; }
        }
    }
}
